package cn.edu.gzhu.workOrderManagement.pojo.dto.organization;

import cn.edu.gzhu.workOrderManagement.constants.MessageConstant;
import cn.edu.gzhu.workOrderManagement.constants.RegexConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class OrganizationRegisterDto {
    @NotBlank
    @Pattern(regexp = RegexConstant.ORGANIZATION_NAME)
    @Length(max = 32)
    private String name;

    @NotNull
    @Min(value = 1)
    private Integer capacity;


}
